#include <mainController.h>

namespace Controller {

  MainController::MainController()
    :viewManager(new View::ViewManager()),
     modelManager(new Model::ModelManager())
  {
    //here define the broadcast sender...
    PostManager *postManager = PostManager::GetPostManager();
    postManager->SetViewManager(viewManager);
    postManager->SetModelManager(modelManager);

    modelManager->ReLoadConf();
  }

  MainController::~MainController()
  {
    delete modelManager;
    delete viewManager;
  }

  bool MainController::Run()
  {
    return true;
  }

}
